package com.itheima.es.springboot.controller;


import com.itheima.es.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.io.IOException;


/**
 * @author 雪落
 * @date 2020/12/30 - 0:55
 */
@Controller
public class UserController {

    @Autowired
    UserService userService;

    @GetMapping("user/test")
    public void test() throws IOException {
        userService.SqlConversionElasticSearch();
    }

    @GetMapping("user/chushihua")
    public void test3() throws IOException {
        userService.ElasticSearchstart();
    }

}
